<?php
/**
 * Created by PhpStorm.
 * Author: 芸签cms www.yunqiancms.com
 * User: sun
 * Date: 2022/7/6
 * Time: 1:07 PM
 */
namespace app\backend\modules\sys\controllers;

use app\backend\controllers\BaseController;

class CacheController extends BaseController
{
    public function update()
    {
        \Artisan::call('config:cache');
        \Artisan::call('view:clear');
        \Cache::flush();


        return $this->message('缓存更新成功');
    }
}